< previous page page_386 next page >

Page 386
Setting Up a Child Form
Setting up a child form in an MDI application is even easier than setting up the parent form. A child form is basically a standard form that has the MDIChild property set to True. Therefore, everything you know about creating standard forms applies to creating the child forms of an MDI application.
For the sample application, all you need to do is set the MDIChild property of the form that was first created for the project. To do so, select the form in the Project window, select the MDIChild property in the Properties window, and change its value to True. You might notice that the icon for the form in the Project window changes from a standard icon to an MDI Child icon. This is the only change that you will notice while you are in the design window (see Figure 17.6)
0386-01.jpg
Figure 17.6
Notice how the two child form icons differ
from those for standard and parent forms.
tip.gif
As with other properties with predefined values, you can double-click the MDIChild property in the Properties window to toggle back and forth between the True and False values.

After you set the MDIChild property, all that is left to complete the form is to add the controls you need for your program. You can, of course, design the form first and change the MDIChild property later. The order of the operation has no effect on the behavior of the form. A typical MDI child form is shown in Figure 17.7.
0386-02.jpg
Figure 17.7
MDI child forms look
just like standard forms.

 
< previous page page_386 next page >